<?php 
/**
 * TODO: Just draft
 * Date: 2009.02.07
 * http://framework.zend.com/wiki/display/ZFPROP/Zend_View_Helper_IndentLines
 */ 
class Clu_View_Helper_HvnAnchor extends Zend_View_Helper_Abstract 
{ 
 
    //return the full <a href="af" class="ex">link</a> text
    //module, controller, action, request params
    public function hvnAnchor($params) 
    {
    	$url = '/' . Zend_Registry::get('viewLang') . '/' . $params['module'] . '/' . $params['controller'] . '/' . $params['action'];
    	
    	$ret = sprintf("<a href='%s'", $url);
    	if (isset($params['class']))
    		$ret = $ret . " class='".$params['class']."'";
    	if (isset($params['id']))
    		$ret = $ret . " id='".$params['id']."'";
    		
    	if (isset($params['name']))
    		$ret = $ret . " name='".$params['name']."'";
    	
    	$ret = $ret . sprintf(">%s</a>", $params['innerHtml']);
        return $ret; 
    } 

	
}